import http from "../service/http";
const user={
	//查询用户信息
	userInfor(param){
		return http.post('/schoolET/wx/personal',param)
	},
	//修改用户信息
	changUserInfor(panickName,phone){
		return http.post(`/schoolET/wx/editInfo?nickName=${panickName}&phone=${phone}`)
	},
	//查询我的购买
	myshopping(param){
		return http.post('/schoolET/wx/myBuy?pageSize=99999',param)
	},
	//查询我的发布
	mySell(param){
		return http.post('/schoolET/wx/mySell?pageSize=99999',param)
	},
	//确认收货
	orderOver(id,param){
		return http.get(`/schoolET/wx/orderOver/${id}`,param)
	},
	//中止交易
	orderEnd(id,param){
		return http.get(`/schoolET/wx/orderEnd/${id}`,param);
	},
	//下架商品
	orderReset(id,param){
		return http.post(`/schoolET/wx/orderReset/${id}`,param);
	}
}
export default user;